import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Autoimport from 'unplugin-auto-import/vite'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),
    Autoimport({
      imports:['vue','vue-router']
    })
  ], server: {
   proxy: {
      '/api': {
        target: 'http://testapi.xuexiluxian.cn',
        changeOrigin: true,
        rewrite: path => path.replace(/^\/api/, '')
      },
    }
    }
  
})
